﻿using ATEC.ATCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace PluginDependencyTest
{
    [ATLoadAttribute(ATTaskID = "PluginDependencyTestTool")]
    public class DependencyTestPlugin : ATLoad
    {
        internal static ATLoad       s_App;

        public DependencyTestPlugin(IntPtr atDescriptor) : base(atDescriptor)
        {
            //LoadRibbon();

            s_App = this;
        }

        public static ATLoad  GetApp()
        {
            return s_App;
        }

        protected override int Run(string[] cmdLine)
        {
            s_App = this;
            return 0;
        }
    }


    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new MainForm());
        }
    }
}
